//TeacherService.java
package org.example.demo3.service;

import org.example.demo3.model.Teacher;

import java.util.List;

public interface TeacherService {
    //返回教师列表
    List<Teacher> findAll();
    //删除教师
    int remove(int id);
    //添加教师
    int add(Teacher teacher);
    //查询对应id的教师
    Teacher findOneById(int id);
    //修改教师
    int edit(Teacher teacher);
    //分页查询
    List<Teacher> findByPage(int currentPage, int pageSize);
    //登录验证
    boolean login(String username, String password);
}
